import { createStore, combineReducers, compose, applyMiddleware } from "redux";
import thunk from "redux-thunk";
import homeReducer from "./reducers/home";
import editorReducer from "./reducers/editor";
import cmsReducer from "./reducers/cms";

const store = createStore(combineReducers({
    home: homeReducer,
    editor: editorReducer,
    cms: cmsReducer
}), compose(
    applyMiddleware(thunk)
))

export default store;